package com.darksider.darkotlin.net.module

import com.darksider.darkotlin.settings.Settings.DEBUG
import dagger.Module
import dagger.Provides
import javax.inject.Singleton

/**
 * User: yaodong(1126220529@qq.com)
 * Date: 2017-05-26
 * Time: 11:36
 * Description:路径依赖模块
 * Update:
 */
@Module
class BaseUrlModule{

    companion object {
        //测试环境
        const val DEBUG_URL = "http://106.14.77.133:8090/"
        //正式环境
        const val RELEASE_URL = "http://106.14.77.133:8090/"
    }

    @Singleton @Provides fun baseUrl():String = if (DEBUG) DEBUG_URL else RELEASE_URL
}